﻿using MicroConfig.NetCore.Client;
using System;
using System.Threading.Tasks;

namespace ClientTest
{
    class Program
    {
        static async Task Main(string[] args)
        {

            MicroConfigManager mcm = new MicroConfigManager();
            await mcm.InitAsync(options =>
            {
                options.SignalRUrl = "http://localhost:52341/MicroConfig";
                options.Environment = "dev";
                options.AccessToken = "123456";
                options.ProjectName = "crm";
            });

            while (true)
            {
                await Task.Delay(2000);
                Console.WriteLine("aa:" + mcm["aa"].Value());
            }

        }
    }
}
